import 'package:bookshelf/generated/json/base/json_field.dart';
import 'package:bookshelf/generated/json/book_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class BookEntity {

	String? searchNo;
	String? isbn;
	String? mainTitle;
	String? author;
	String? chiClassify;
	String? subject;
	String? publisher;
	dynamic publishAddr;
	String? publishDate;
	double? price;
	dynamic language;
	String? pages;
	dynamic spec;
	dynamic version;
	dynamic volume;
	dynamic summary;
	dynamic notes;
	String? place;
	String? placeName;
	String? placeFirst;
	String? firstPlaceName;
	String? uid;
	dynamic remark;
	String? no;
	String? bookId;
	dynamic batchId;
	String? stateValue;
	int? borrowCount;
	int? resort;
	dynamic name;
	dynamic rfid;
	dynamic remarkTree;
	dynamic category;
	String? coverFileUrl;
	String? url;
	String? id;

	//0 正确
	//1 新增
	//2 错架
	//-1 缺失
	int? status;


	BookEntity();

  factory BookEntity.fromJson(Map<String, dynamic> json) => $BookEntityFromJson(json);

  Map<String, dynamic> toJson() => $BookEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}